<section id="jwkIndstry" class="ml-24 mr-24">
	<div class="clearfix border-b ptb-10">
		<span class="pull-left line-height-34 font-16">行业配置</span>
		<div class="pull-right">
			<button class="btn s-btn-default" @click="add">新增</button>
		</div>
	</div>
	<div class="mt-15 box-i-shadow-1 br-4">
		<div class="text-center color-gray dy-flex line-height-40">
			<div class="dy-fx-1">序</div>
			<div class="dy-fx-2">名称</div>
			<div class="dy-fx-2">状态</div>
			<div class="dy-fx-1">操作</div>
		</div>
		<div class="border-t text-center color-gray dy-flex line-height-40" v-for="(item,index) in data">
			<div class="dy-fx-1">{{ index+1 }}</div>
			<div class="dy-fx-2">
				<span v-if="selectActiveCode.indexOf(item.industryCode) == -1">{{ item.industryName }}</span>
				<span class="icon-Gm-edit cursor" @click="edit(index)" v-if="selectActiveCode.indexOf(item.industryCode) == -1"></span>
				<input type="text" class="form-control inline text-center" style="width: 50%;" v-model="item.industryName" v-if="selectActiveCode.indexOf(item.industryCode) > -1">
				<span class="icon-Gm-confirm cursor" @click="editSubmit(index)" v-if="selectActiveCode.indexOf(item.industryCode) > -1"></span>
			</div>
			<div class="dy-fx-2">{{ item.valid == 'Y' ? '启用' : '停用' }}</div>
			<div class="dy-fx-1">
				<a href="javascript:;" class="mr-5" @click="validSet(index)">{{ item.valid == 'Y' ? '停用' : '启用' }}</a>
				<a href="javascript:;" @click="del(item)">删除</a>
				<a href="javascript:;" @mouseenter="copyURL(item)" @click="copyss">复制URL</a>
			</div>
		</div>
		<div class="border-t text-center color-gray dy-flex line-height-40" v-for="(item,index) in addArr">
			<div class="dy-fx-1">{{ data.length+1 }}</div>
			<div class="dy-fx-2">
				<input type="text" class="form-control inline text-center" style="width: 50%;" v-model="item.industryName">
				<span class="icon-Gm-confirm cursor" @click="addSave"></span>
			</div>
			<div class="dy-fx-2">启用</div>
			<div class="dy-fx-1">
				<a href="javascript:;" @click="delAddIndustry">删除</a>
			</div>
		</div>
	</div>
	
	<input type="text" id="copyInput" style="opacity:0" readonly>
</section>

<script src="modules/workbench/scripts/jwkIndstry.js" charset="utf-8"></script>